//
//  BozhuNextTableViewCell.m
//  Ting
//
//  Created by 安静的美男子 on 14/11/25.
//  Copyright (c) 2014年 安静的美男子. All rights reserved.
//

#import "BozhuNextTableViewCell.h"

@implementation BozhuNextTableViewCell

- (void)awakeFromNib {
    // Initialization code
}


-(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        self.photo = [[UIImageView alloc]initWithFrame:CGRectMake(0, 0, 150, 150)];
        [self.contentView addSubview:_photo];
        
        self.title = [[UILabel alloc]initWithFrame:CGRectMake(160 , 10, 120, 20)];
        [self.contentView addSubview:_title];
        self.title.textColor = [UIColor cyanColor];
        
        self.comment = [[UILabel alloc]initWithFrame:CGRectMake(160, 50, 150, 50)];
        [self.contentView addSubview:_comment];
        self.comment.font = [UIFont systemFontOfSize:15];
        self.comment.numberOfLines = 0;
        
        
        
        self.people = [[UILabel alloc]initWithFrame:CGRectMake(160, 100, 150, 20)];
        [self.contentView addSubview:_people];
        self.people.textColor = [UIColor lightGrayColor];
        self.people.font = [UIFont systemFontOfSize:13];
        
        self.V = [[ UIImageView alloc]initWithFrame:CGRectMake(280, 10, 20, 20)];
        [self.contentView addSubview:_V];
        
        _V.image = [UIImage imageNamed:@"find_hot_albumV@2x.png"];
        
        
        
        
    }
    return self;
    
}
-(void)setmodel:(BozhuNextModel *)model
{
    [self.photo sd_setImageWithURL:[NSURL URLWithString:model.largeLogo] placeholderImage:[UIImage imageNamed:@"123.gif"]];
    self.title.text = model.nickname;
    self.comment.text = model.personDescribe;
    self.people.text = [NSString stringWithFormat:@"听众:%@",model.followersCounts];
    if (!model.isVerified) {
        self.V.hidden = YES;
    }
    
    
    
}


- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
